﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiaoYuStock.Model;
namespace XiaoYuStock.AppService.State
{
   public static class AnalysedStateFactory
    {
       public static AnalysedState GetInstance(AnalysedType type)
       {
           AnalysedState _state =null;
           switch (type)
           {
               //case AnalysedType.OpenLessThanClose:
               //    _state = new OpenLessThanCloseState();
               //    break;
               //case AnalysedType.OpenMoreThanClose:
               //    _state = new OpenMoreThanCloseState();
               //    break;
               //case AnalysedType.SequenceDescend:
               //    _state = new SequenceDescendState();
               //    break;
               case AnalysedType.SequenceIncrease:
                   _state = new SequenceIncreaseState();
                   break;
               case AnalysedType.Cross:
                   _state = new CrossState();
                   break;
            
           }
           return _state;
       }

    
    }
}
